From: Alexandru Fikl Date: Sun, 12 Apr 2020 01:40:34 +0000 (-0500) Subject: [PATCH] wrap calls to clRetainKernel and clRetainEvent X-Git-Tag: archive/raspbian/1.6-3+rpi1~1^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fe648cbd81741608a664d42befd7561a67a23f1d;p=pocl.git [PATCH] wrap calls to clRetainKernel and clRetainEvent Gbp-Pq: Name 0001-wrap-calls-to-clRetainKernel-and-clRetainEvent.patch --- diff --git a/lib/CL/clEnqueueNDRangeKernel.c b/lib/CL/clEnqueueNDRangeKernel.c index dc0204d..9d7514a 100644 --- a/lib/CL/clEnqueueNDRangeKernel.c +++ b/lib/CL/clEnqueueNDRangeKernel.c @@ -608,7 +608,7 @@ if (local_##c1 > 1 && local_##c1 <= local_##c2 && local_##c1 <= local_##c3 && \ if (pocl_cq_profiling_enabled) { pocl_cq_profiling_register_event (command_node->event); - clRetainKernel (kernel); + POname(clRetainKernel) (kernel); command_node->event->meta_data->kernel = kernel; } diff --git a/lib/CL/pocl_cq_profiling.c b/lib/CL/pocl_cq_profiling.c index 082d84e..77caeff 100644 --- a/lib/CL/pocl_cq_profiling.c +++ b/lib/CL/pocl_cq_profiling.c @@ -127,7 +127,7 @@ pocl_cq_profiling_init () void pocl_cq_profiling_register_event (cl_event event) { - clRetainEvent (event); + POname(clRetainEvent) (event); if (event->meta_data == NULL) event->meta_data = (pocl_event_md *)malloc (sizeof (pocl_event_md));